/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package exercicio13;

/**
 *
 * @author Caio
 */
public class PrimitiveElement extends DrawingElement {

    public PrimitiveElement(String name) {
        super(name);
    }

    @Override
    public void add(DrawingElement d) {
        System.out.println("Cannot add  to a PrimitiveElement");
    }

    @Override
    public void remove(DrawingElement d) {
        System.out.println("Cannot remove from a PrimitiveElement");
    }

    @Override
    public void Display(int ident) {
        System.out.println(" - "+ident+name);
    }
    
}
